Automatic Test Case Generation for OCL: a Mutation Approach

نویسندگان

  • Percy Antonio Pari Salas
  • Bernhard K. Aichernig
چکیده

Fault-based testing is a technique where testers anticipate errors in a system under test in order to assess or generate test cases. The idea is to have enough test cases capable of detecting these anticipated errors. This work presents a method of fault-based test case generation for preand postcondition specifications. Here, errors are anticipated on the specification level by mutating the preand postconditions. We present the underlying theory by giving test cases a formal semantics and translate this general testing theory to a constraint satisfaction problem. A prototype test case generator serves to demonstrate the automatization of the method. It works on OCL specifications. Percy A. Pari Salas is a Fellow at UNU/IIST on leave from San Pablo Catholic University, Arequipa Peru, where he is a lecturer in Informatics Engineering. His current research interests include software testing, specially mutation analysis, formal development methods and formal specification languages. His email address is [email protected]. Bernhard K. Aichernig is a Research Fellow at UNU/IIST. He is also an assistant professor at the Institute for Software Technology at the Graz University of Technology in Austria. His research interests include the synergies of testing and formal development methods, techniques of refinement, and requirements engineering supported by formal specification languages. His email address is [email protected]. Copyright c © 2005 by UNU-IIST, Percy Antonio Pari Salas and Bernhard K. Aichernig

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Automatic Test Case Generation from UML Models and OCL Expressions

In this paper, we discuss one approach of automated test case generation from UML models and OCL expressions. We show how to use UML and OCL to support several coverage criteria. We introduce our current prototype implementation, compare it to commercial tools, and sketch shortcomings and further development.

متن کامل

Reusing State Machines for Automatic Test Generation in Product Lines

In this paper, we deal with the reuse of state machines for automatic test case generation in the context of product lines. We consider a corresponding approach of the Object Management Group and introduce our own approach to reuse state machines. We use OCL expressions to automatically derive test suites. All explanations are supported by the example of a car audio system.

متن کامل

A Specification-Based Test Case Generation Method for UML/OCL

Automated test data generation is an important method for the verification and validation of UML/OCL specifications. In this paper, we present an extension of DNF-based test case generation methods to class models and recursive query operations on them. A key feature of our approach is an implicit representation of object graphs avoiding a representation based on object-id’s; thus, our approach...

متن کامل

A Survey on Automatic Test Case Generation

Software testing is important activity in Software Development Life Cycle. To cut down cost of manual testing and to increase reliability of it, researchers and practitioners have tried to automate it. One of the important activity in testing environment is automatic test case generation description of a test, independent of the way a given software system is designed. This paper presents a sur...

متن کامل

Deriving Input Partitions from UML Models for Automatic Test Generation

In this paper, we deal with model-based automatic test generation. We show how to use UML state machines, UML class diagrams, and OCL expressions to automatically derive partitions of input parameter value ranges for boundary testing. We present a test generation algorithm and describe an implementation of this algorithm. Finally, we discuss our approach and compare it to commercial tools.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2005